package com.gift.recommendation.modules.user.service;

import com.gift.recommendation.modules.user.dao.mapper.ProvinceMapper;
import com.gift.recommendation.modules.user.dto.ProvinceReq;
import com.gift.recommendation.modules.user.dto.ProvinceExt;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author zzh <2658137258@qq.com>
 * @date 2023/2/16
 */
@Component
public class ProvinceService {
    @Autowired
    private ProvinceMapper provinceMapper;

    public List<ProvinceExt> getListProvince() {
        return provinceMapper.getListProvince();
    }

    public List<ProvinceExt> getListArea(ProvinceReq req) {
        return provinceMapper.getListArea(req);
    }

    public Integer haveCity(ProvinceReq req) {
        return provinceMapper.haveCity(req);
    }

    public List<ProvinceExt> getListCity(ProvinceReq req) {
        return provinceMapper.getListCity(req);
    }

    public List<ProvinceExt> getListTown(ProvinceReq req) {
        return provinceMapper.getListTown(req);
    }
}
